package CtrLayer;
import ModelLayer.OrderCollection;
import java.util.ArrayList;



/**
 * Write a description of class OrderCtr here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class OrderCtr
{
    
    
    public OrderCtr ()
    {

    }
    
    public String add_order(boolean with_delivery, String delivery_note, String additional_information, boolean is_complete, String terms_of_delivery, ArrayList<String> ids, ArrayList<String> amounts, double special_discount, double group_discount)
    {
        return OrderCollection.add_order(with_delivery, delivery_note, additional_information, terms_of_delivery, is_complete, ids, amounts, special_discount, group_discount);
    }
    
    public double provide_total_cost_of_order(String id)
    {
        return OrderCollection.provide_total_cost_of_order(id);
    }
    
    public boolean is_such_id(String id)
    {
        return OrderCollection.is_such_id(id);
    }
    
    public boolean is_completed(String id)
    {
        return OrderCollection.is_completed(id);
    }
    
    public void close_order(String id)
    {
        OrderCollection.close_order(id);
    }
    
    public String display_order(String id)
    {
        return OrderCollection.display_order(id);
    }
    
    public String display_pending_orders()
    {
        return OrderCollection.display_pending_orders();
    }
    
    public String display_all_orders()
    {
        return OrderCollection.display_all_orders();
    }
    /***************************DISCOUNTS********************************/
    public void save_discounts()
    {
        OrderCollection.save_discounts();
    }
    
    public String display_maximum_discount()
    {
        return OrderCollection.display_maximum_discount();
    }
    
    public String display_pickup_discount()
    {
        return OrderCollection.display_pickup_discount();
    }
    
    public void change_pickup_discount(double discount)
    {
        OrderCollection.change_pickup_discount(discount);
    }
    
    public void change_maximum_discount(double discount)
    {
        OrderCollection.change_maximum_discount(discount);
    }
        
    
}

